<!--来源:http://www.zhangxinxu.com/wordpress/2014/04/%e8%87%aa%e9%80%82%e5%ba%94%e8%a1%a8%e6%a0%bc-%e5%ad%97%e7%ac%a6%e6%8d%a2%e8%a1%8c-%e6%ba%a2%e5%87%ba%e7%82%b9%e7%82%b9%e7%82%b9-table-text-overflow-ellipsis-word-wrap-break-all/-->
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.line:before{
				content: "";
				font-size: 0;
				padding: 10px 3px 1px;
				margin-left: 6px;
				border-left: 1px solid gray;
			}
		</style>
	</head>

	<body>
		<a href='#'>登录</a>
		<a class='line' href='#'>注册</a>
	</body>

</html>